#import "RadiateLullabyView.h"


@implementation RadiateLullabyView



- (void)setAmberCascade:(RadiateLullabyModel *)amberCascade {
	_amberCascade = amberCascade;

	//: 配置cell的UI

	self.tranquilLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)amberCascade.nirvana.count];

}
- (UITextView *)embarkPathwayTextView {
	if (!_embarkPathwayTextView) {
	
        _embarkPathwayTextView = [[UITextView alloc] init];
	}
	return _embarkPathwayTextView;
}

//: _enchantingButton 的点击事件
- (void)action_5 {}

- (UIButton *)enchantingButton {
	if (!_enchantingButton) {
	
        _enchantingButton = [[UIButton alloc] init];
        _enchantingButton.size = CGSizeMake(199, 138);
        _enchantingButton.left = 30;
        _enchantingButton.top = 45;
        UIImage *nightfall = [UIImage imageNamed:@"images/icon_5.png"];
        if (nightfall) {
	        [_enchantingButton setImage:nightfall forState:UIControlStateNormal];
        }
        [_enchantingButton setTitle:@"button_5" forState:UIControlStateNormal];
        [_enchantingButton setTitle:@"button_selected_5" forState:UIControlStateSelected];
        [_enchantingButton setTitleColor:[UIColor colorWithRed:10/255.0 green:138/255.0 blue:114/255.0 alpha:0.6] forState:UIControlStateNormal];
        [_enchantingButton setTitleColor:[UIColor colorWithRed:21/255.0 green:122/255.0 blue:145/255.0 alpha:0.8] forState:UIControlStateSelected];
        [_enchantingButton addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
	}
	return _enchantingButton;
}

- (void)echoConfigViews {

    //: 描述_0
    UILabel *feastJoyful = [[UILabel alloc] init];
    feastJoyful.size = CGSizeMake(117, 182);
    feastJoyful.left = 2;
    feastJoyful.top = 2;
    feastJoyful.text = @"label_0";
    feastJoyful.font = [UIFont systemFontOfSize:20 weight:UIFontWeightRegular];
    feastJoyful.textColor = [UIColor colorWithRed:34/255.0 green:118/255.0 blue:227/255.0 alpha:0.7];
    feastJoyful.textAlignment = NSTextAlignmentCenter;
    feastJoyful.numberOfLines = 3;
    self.tranquilLabel = feastJoyful;
    [self addSubview:feastJoyful];


    //: 描述_1
    self.juggleLuminaryView = [[UIView alloc] initWithFrame:CGRectZero];
    self.juggleLuminaryView.frame = CGRectMake(43, 45, 121, 125);
    [self addSubview:self.juggleLuminaryView];


    //: 描述_2
    self.spiralTextField = [[UITextField alloc] init];
    [self addSubview:self.spiralTextField];
	[self.spiralTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(69);
		make.height.mas_equalTo(101);
		make.top.equalTo(@(26));
		make.bottom.equalTo(@(17));
	}];

	//: 描述_3
	[self addSubview:self.embarkPathwayTextView];
	[self.embarkPathwayTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(44);
		make.height.mas_equalTo(129);
		make.top.equalTo(@(20));
		make.bottom.equalTo(@(25));
	}];


    //: 描述_4
    UITextField *sereneOlive = [UITextField new];
    self.igniteTranquilTextField = sereneOlive;
    [self addSubview:sereneOlive];
	[self.igniteTranquilTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(97);
		make.height.mas_equalTo(126);
		make.bottom.equalTo(@(30));
	}];

	//: 描述_5
	[self addSubview:self.enchantingButton];
}


@end